package test.day12.test19;

class Animal {
    int m = 100;
    public int setM(){
       return m;
    }
    public int getM(){
       return m;
    }
}
class Dog extends Animal{
    int m = 6;
    public int setM(){
       return  m;
    }
}
public class E {
    public static void main(String args[]){
       Animal dog = new Dog();
       System.out.printf("%d:%d",dog.setM(),dog.getM()); //【代码】
    }
}
